package com.example.seckill.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @program: seckill
 * @description: Rabbitmq配置类
 * @author: KingCrimson
 * @create: 2022-08-17 17:19
 **/

@Configuration
public class RabbitMQConfig {

     @Bean
     public Queue queue1(){
          return new Queue("queue",true);
     }

}
